/* 全局样式 */
/* 因为很多标签默认设置内外边距 */
*{margin: 0px; padding: 0px;}
/* 默认是以基线对齐，会有不平 */
img{vertical-align: bottom;}
/* 默认a有下划 */
a{text-decoration: none;}
/* 列表标 li 默认样式不占像素空间，会影响其它元素*/
li{list-style: none;}

/* body{
	padding-bottom: 200px;
} */

/* 头部样式 */
header{
	/* width: 100%; */
	height: 56px;
	background: #25292E;
}

.header{
	width: 1000px;
	height: 56px;
	margin: 0px auto;
	/* background-color: gray; */
	/* 父级设置 flex */
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.logo{
	width: 96px;
	height: 45px;
	background: url(../img/icon.png);
	/* 设置透明 */
	opacity: 0.7;
	/* 过渡动画 */
	transition: 0.5s;
}
.logo:hover{
	opacity: 1;
}

.nav-r{
	height: 56px;
	/* background-color: orange; */
	/* 设置为flex 布局 */
	display: flex;
	align-items: center;
}
.nav-r>li{
	font-size: 12px;
}

.login, .register{
	margin-right: 16px;
}
.login>a, .register>a{
	color: #ccc;
}
.welcome, .loginout{
	margin-right: 16px;
	color: #ccc;
	cursor: pointer;
}

.nav-r .nav-line{color: #666; font-size: 10px;}

.cart, .message{
	height: 56px;
	color: #666;
	padding: 0px 16px;
	/* 参照 */
	position: relative;
}
.cart>p, .message>p{
	line-height: 56px;
}

.agreement>a, .add-product>a{
	color: #666;
	margin-left: 16px;
}

/* 鼠标移入效果 */
.nav-r>li:hover{color: #ccc;}
.nav-r>li:hover a{color: #ccc;}
.cart:hover, .message:hover{
	background: #3F474E;
}

/* 购物车子菜单 */
.cart-subnav{
	width: 320px;
	background-color: #3F474E;
	/* 定位 */
	position: absolute;
	left: 0px;
	top: 56px;
	/* 默认隐藏 */
	display: none;
	z-index: 999;
}
.cart:hover .cart-subnav{
	display: block;
}

/* 暂无商品 */
.cart-msg{
	height: 70px;
	line-height: 70px;
	text-align: center;
	font-size: 14px;
	color: #ccc;
	/* display: none; */
}

/* 购物车商品 */
.cart-list{
	height: 250px;
	overflow-y: scroll;
}
/* 设置滚动条 */
.cart-list::-webkit-scrollbar{
	width: 0px;
}
/* .cart-list::-webkit-scrollbar-track{
	background-color: red;
} */
/* .cart-list::-webkit-scrollbar-thumb{
	background-color: #96C8E0
} */
/* .cart-list::-webkit-scrollbar-button{
	background-color: pink;
} */


.cart-list li.goods{
	padding: 14px;
	display: flex;
	border-bottom: 1px solid #666;
}
.goods>a>img{
	width: 64px;
	height: 64px;
	margin-right: 10px;
}
.goods>div{
	flex:1;
	font-size: 12px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	color: #ccc;
}
.goods p:nth-of-type(1){
	color: #666;
}
.goods p:nth-of-type(3){
	width: 100%;
	display: flex;
	justify-content: space-between;
}
.goods p:nth-of-type(3) :last-child{
	color: #666;
	text-decoration: line-through;
}

.cart-list li:hover{
	background-color: #292F34;
}



/* 购物车按钮 */
.cart-btn{
	height: 45px;
	background-color: rgb(125,191,222);
	color:white;
	line-height: 45px;
	text-align: center;
}
.cart-btn:hover{
	background-color: #96C8E0;
}

/* 导航样式 */
nav{
	width: 1000px;
	height: 45px;
	margin: 0px auto;
	border-bottom: 4px solid #EDEDED;
	display: flex;
}
nav>ul{
	display: flex;
	align-items: center;
}
nav>ul>li{
	width: 120px;
	height: 45px;
	text-align: center;
	line-height: 45px;
	margin-right: 16px;
	/* 设置下边框 */
	border-bottom: 4px solid #EDEDED;
	position: relative;
	top:2px;
}
nav>ul>li:hover{
	border-bottom: 4px solid #25292E;
}
nav>ul>li>a{
	color: #333;
	font-size: 15px;
}
nav>ul>li:first-of-type{
	text-align: left;
	width: 82px;
}

/* 导航的子菜单 */
.nav-subnav{
	width: 1000px;
	height: 420px;
	background-color: white;
	position: absolute;
	left: -98px;
	top: 49px;
	padding-top: 40px;
	border-bottom: 1px solid #ccc;
	/* 默认隐藏 */
	display: none;
	z-index: 998;
}
nav>ul>li:hover .nav-subnav{
	display: block;
}

.nav-list{
	width: 770px;
	float: left;
	display: flex;
	flex-wrap: wrap;
}
.nav-list>li{
	margin: 0px 60px 30px 0px;
}
.nav-list>li img{
	width: 40px;
}
.nav-list>li p{
	color: #333;
	font-size: 14px;
	line-height: 18px;
	font-weight: bold;
}

.nav-subnav-r{
	width: 230px;
	float: right;
}
.nav-subnav-r img{
	width: 100%;
}
.nav-subnav-r p{
	font-size: 14px;
	color: #333;
}

/* 搜索框 */
.search-content{
	flex:1;
	display: flex;
	align-items: center;
	border-bottom: 4px solid #25292E;
	position: relative;
	top: 4px;
}
.search-content input{
	border: none;
	height: 24px;
	/* 去掉聚集的边框 */
	outline: none;
}
.search-content span{
	width: 43px;
	height: 38px;
	background:url(../img/icon.png) no-repeat -157px -147px;
}

/* 底部 */
.server-content{
	height: 248px;
	background-color: #E4F3FA;
}
.bottom-server{
	width: 1000px;
	height: 248px;
	margin: 0 auto;
	text-align: center;
	padding: 40px 0px 80px 0px;
}
.bottom-server>a{
	color: #666;
	font-size: 14px;
	font-weight: 600;
	line-height: 22px;
}
@keyframes serverhand {
	from{
		left: 0px;
	}
	to{
		left: -20px;
	}
}
.bottom-server span{
	width: 20px;
	height: 20px;
	font-size: 20px;
	color: #666;
	position: relative;
	top: 2px;
	left: -20px;
	animation: serverhand .5s linear infinite alternate;
}

/* 返回顶部 */
.back-top{
	width: 59px;
	height: 60px;
	background: url(../img/icon.png) no-repeat -22px -813px;
	position: fixed;
	right: 50px;
	bottom: 50px;
	z-index: 999;
	transition: 0.5s;
	/* 默认隐藏 */
	display: none;
}
.back-top:hover{
	opacity: 0.8;
}

/* 弹出框 */
.alert-msg{
	width: 100%;
	height: 100vh;
	background-color: rgba(0, 0, 0, .7);
	position: fixed;
	left: 0px;
	top: 0px;
	z-index: 1000;
	/* 默认隐藏 */
	display: none;
}
.alert-content{
	width: 500px;
	height: 200px;
	background-color: orange;
	position: absolute;
	left: 50%;
	top: 50%;
	margin: -100px 0px 0px -250px;
}












